|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.engine.runtime.Scope
org.eclipse.vtp.framework.engine.runtime.Execution
public class Execution
Implementation of the execution scope and context.
| Nested Class Summary | |
|---|---|
protected class |
Execution.Context
Implementation of the generic context. |
| Field Summary | |
|---|---|
protected Execution.Context |
context
The generic context implementation. |
protected Session |
session
The owner of this execution. |
| Constructor Summary | |
|---|---|
Execution(Session session,
IExecutionDescriptor descriptor)
Creates a new Execution. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes this execution. |
java.lang.String |
getExecutionID()
Returns the ID of this execution sequence. |
protected java.util.Collection |
getServices(java.lang.String identifier)
|
ISession |
getSession()
Returns the session that created this execution. |
boolean |
hasNextStep()
Returns true if there are more steps to perform in the process. |
boolean |
isNextStepBlocking()
Returns true if there is at least one step to perform and the next step may block across executions. |
java.lang.Object[] |
lookupAllServices(java.lang.String identifier)
Returns an array containing all the services registered under the specified identifier. |
java.lang.Object |
lookupService(java.lang.String identifier)
Looks up the service selected for the specified identifier or null if no such service exists. |
ICommand |
nextStep()
Returns the next step in the process. |
void |
takeNextStep()
|
| Methods inherited from class org.eclipse.vtp.framework.engine.runtime.Scope |
|---|
getServiceInstance, lookupAllInScope, lookupInScope, registerImplicitServices |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Session session
protected final Execution.Context context
| Constructor Detail |
|---|
public Execution(Session session,
IExecutionDescriptor descriptor)
session - The owner of this execution.descriptor - The execution descriptor.
java.lang.NullPointerException - If the supplied session is null.
java.lang.NullPointerException - If the supplied descriptor is
null.| Method Detail |
|---|
protected java.util.Collection getServices(java.lang.String identifier)
getServices in class Scopepublic java.lang.String getExecutionID()
IExecution
getExecutionID in interface IExecution
public java.lang.Object lookupService(java.lang.String identifier)
throws java.lang.NullPointerException
IExecutionnull if no such service exists.
lookupService in interface IExecutionidentifier - The identifier of the service to look up.
null if no such service exists.
java.lang.NullPointerException - If the supplied identifier is
null.
public java.lang.Object[] lookupAllServices(java.lang.String identifier)
throws java.lang.NullPointerException
IExecution
lookupAllServices in interface IExecutionidentifier - The identifier of the services to look up.
java.lang.NullPointerException - If the supplied identifier is
null.public boolean hasNextStep()
IExecution
hasNextStep in interface IExecutionpublic boolean isNextStepBlocking()
IExecution
isNextStepBlocking in interface IExecution
public ICommand nextStep()
throws java.lang.IllegalStateException
IExecution
nextStep in interface IExecutionjava.lang.IllegalStateException - If there are no more steps in this process.
public void takeNextStep()
throws java.lang.IllegalStateException,
java.lang.RuntimeException
java.lang.IllegalStateException
java.lang.RuntimeExceptionpublic ISession getSession()
IExecution
getSession in interface IExecutionpublic void dispose()
IExecution
dispose in interface IExecution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||